package com.generate.tools.main;

import com.generate.tools.conn.ConnectionFactory;
import com.generate.tools.conn.IConnection;

public class MasterEngineer {
	
	private IConnection conn;
	
	private IMaster master;
	
	public void generateEntity(String masterType){
		MasterFactory masterFactory = new MasterFactory();
		master = masterFactory.factory(masterType);
		ConnectionFactory connFactory = new ConnectionFactory();
		conn = connFactory.factory(masterType);
		master.generate(conn.getConn());
		System.out.println("ok");
	}
}
